import { createWebHashHistory,createRouter } from "vue-router";
import News from "../views/News.vue"
import Show from "../views/Show.vue"


const routes = [
    {
        path:"/news",
        component:News
    },
    {
        path:"/show",
        component:Show
    },
    {
        path:"/",
        redirect:"/news"
      }
] 

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
